package org.airlink.persistence.criteria.expressions
{
	import flex.persistence.criteria.Expression;
	import flex.persistence.criteria.Subquery;
	
	import org.airlink.persistence.criteria.CriteriaBuilderImpl;
	import org.airlink.persistence.criteria.ExpressionImpl;
	
	[ExcludeClass]
	public class All extends ExpressionImpl {
		
		private var query:Subquery;
		private var criteriaBuilder:CriteriaBuilderImpl;
		
		public function All(criteriaBuilder:CriteriaBuilderImpl, query:Subquery) {
			this.query = query;
			this.criteriaBuilder = criteriaBuilder;
		}
		
		override public function toString():String {
			return "all(" + query.asValue() + ")";	
		}				
	}
}